package OOday01;

public  class HomeWork {
    public static void main(String[] args) {
        Student1 ypm=new Student1("于璞萌",18,"西点一班",123);
        ypm.study();
        ypm.idCard();
        ypm.playWith("马泽旭");
        Terraria mzx=new Terraria("mzx","救赎");
        mzx.makeHome();
        mzx.pkBoss();
    }
}
class Student1 {
    String name;
    int age;
    String className;
    long stuId;
    Student1(){
    }
    Student1(String name,int age,String className,long stuId){
        this.name=name;
        this.className=className;
        this.age=age;
        this.stuId=stuId;
    }
    void study(){
        System.out.println(name+"正在学习...");
    }
    void idCard(){
        System.out.println(name+"\t学号为："+stuId+"\t年龄为："+age+"\t班级为："+className);
    }
    void playWith(String another){
        System.out.println(name+"正在和"+another+"做蛋糕");
    }
        }
        class Terraria{
    String name;
    String naDu;
    Terraria(){
    }
    Terraria(String name,String naDu){
        this.name=name;
        this.naDu=naDu;
    }
    void makeHome(){
        System.out.println(name+"在"+naDu+"的世界中造房子");
    }
    void pkBoss(){
        System.out.println(name+"在"+naDu+"的世界中击杀月总");
    }
        }